package com.learn.service.impl;

import com.learn.Dao.UserDao;
import com.learn.bean.User;
import com.learn.service.UserService;

/**
 * @author DJJ_F
 * @version 1.0
 * @date 2024/11/26
 * @description 用户相关业务接口的实现类
 */
public class UserServiceImpl implements UserService {
    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void deleteUser(Integer id) {
        userDao.deleteUser(id);
    }

    @Override
    public void updateUser(User user) {
        userDao.updateUser(user);
    }
}
